package eclipse.weibo.modle;

import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import weibo4j.Status;

public class StatusWindow extends Composite
{
  private Text t;
  private Button b;

  public StatusWindow(Composite parent, int style)
  {
    super(parent, style);
    GridLayout lay = new GridLayout();
    lay.numColumns = 2;
    setLayout(lay);

    this.t = new Text(this, 2048);
    this.t.setText("");
    this.t.setLayoutData(new GridData(500, 20));
    this.b = new Button(this, 8);
    this.b.setText("456");
    this.b.setLayoutData(new GridData(50, 20));
  }

  public void setStatus(Status s) {
    this.t.setText(s.getText());
  }
}
